%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  My documentation report
%  Objetive: Explain what I did and how, so someone can continue with the investigation
%
% Important note:
% Chapter heading images should have a 2:1 width:height ratio,
% e.g. 920px width and 460px height.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%----------------------------------------------------------------------------------------
%	PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[11pt,fleqn]{book} % Default font size and left-justified equations

\usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,letterpaper]{geometry} % Page margins

\usepackage{xcolor} % Required for specifying colors by name
\usepackage{svg}
\usepackage{nomencl}
\definecolor{ocre}{RGB}{52,177,201} % Define the orange color used for highlighting throughout the book

% Font Settings
\usepackage{avant} % Use the Avantgarde font for headings
%\usepackage{times} % Use the Times font for headings
\usepackage{mathptmx} % Use the Adobe Times Roman as the default text font together with math symbols from the Sym­bol, Chancery and Com­puter Modern fonts
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\usepackage{amsthm}
\usepackage{appendix}
\usepackage{diagbox}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
% Bibliography
\usepackage[style=alphabetic,sorting=nyt,sortcites=true,autopunct=true,babel=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex}
\addbibresource{bibliography.bib} % BibTeX bibliography file
\defbibheading{bibempty}{}

\input{contents/structure} % Insert the commands.tex file which contains the majority of the structure behind the template

%----------------------------------------------------------------------------------------
%	Definitions of new commands
%----------------------------------------------------------------------------------------

\def\R{\mathbb{R}}
\newcommand{\cvx}{convex}
\begin{document}

%----------------------------------------------------------------------------------------
%	TITLE PAGE
%----------------------------------------------------------------------------------------

\begingroup
\thispagestyle{empty}
\AddToShipoutPicture*{\put(0,0){\includegraphics[scale=1.25]{esahubble}}} % Image background
\centering
\vspace*{5cm}
\par\normalfont\fontsize{35}{35}\sffamily\selectfont
\textbf{数据结构与算法}\\
{\LARGE Linux环境下开发}\par % Book title
\vspace*{1cm}
{\Huge 
bleedingfight
}\par % Author name
\endgroup

%----------------------------------------------------------------------------------------
%	COPYRIGHT PAGE
%----------------------------------------------------------------------------------------

\newpage
~\vfill
\thispagestyle{empty}

%\noindent Copyright \copyright\ 2014 Andrea Hidalgo\\ % Copyright notice


\noindent \textit{https://gitee.com/bleedingfight}\\ % URL

\noindent 本书基于C++实现常见的数据结构和算法，包含Leetcode算法实践，数据结构基础，常见C++编程错误等等。本书中涉及的代码通过CMake工具集成，理论上在所有的平台都可以正常运行。单个代码编译使用clang，事实上使用任何你熟悉的编译器都可以，从本书开始撰写最初clang++版本是 5.0到目前的clang++ 16。使用clang++是因为大多数Linux发行版自带编译器都不够新，需要支持更高C++标准的时候会比较麻烦。clang++安装不会影响g++,升级clang++将能以较低的风险获得更佳的编译工具，更重要的是作为MacOS的默认编译工具。尽管大多数算法都是基于C++实现的，但是算法和数据结构本身是和语言不相关的，代码中的三方库维护了rust和python版本的部分代码实现，目前还没有C++代码那么丰富，最终有一天能和C++代码一样丰富的时候会fork不同语言的分支。\\
\noindent \textit{First release, July 2018} % Printing/edition date

%----------------------------------------------------------------------------------------
%	TABLE OF CONTENTS
%----------------------------------------------------------------------------------------

\chapterimage{head1.png} % Table of contents heading image

\pagestyle{empty} % No headers

\tableofcontents % Print the table of contents itself

%\cleardoublepage % Forces the first chapter to start on an odd page so it's on the right

\pagestyle{fancy} % Print headers again

%----------------------------------------------------------------------------------------
%	CHAPTER 1
%----------------------------------------------------------------------------------------
\listoflistings

\chapterimage{head2.png} % Chapter heading image
\input{contents/glossaries}
\part{数据结构与算法理论}
\input{contents/datastruct_linear}
\input{contents/datastruct_index}
\input{contents/datastruct_graph}
\input{contents/arithmetic_datastruct_ast}
\input{contents/algorithm}
\part{算法及实现}
\chapter{数据结构与应用}
\input{contents/arithmetic_datastruct_link_algo}
\input{contents/arithmetic_datastruct_map_algo}
\input{contents/arithmetic_datastruct_tree_algo}
\input{contents/arithmetic_datastruct_graph_algo}
\input{contents/arithmetic_common}
\input{contents/arithmetic_binary_search}
\input{contents/arithmetic_backtrack}
\input{contents/arithmetic_greedy}
\input{contents/arithmetic_dp}
\input{contents/specification}
\end{document}
